package com.amigo.online.provider.adv.service;

import java.util.List;

import com.amigo.online.common.param.common.KeyValueModel;

/**
 * @version: V 1.0.0
 * @Description: （推荐视频广告库存）
 * @author: zxy  QQ:1363320658
 * @date: 2018年12月5日 下午4:40:55
 */
public interface AdvRecommendStockService {

    /**
     * @throws
     * @Title: storageAdvRestNumberFromRedis
     * @Description: (批量更新推荐视频广告库存)
     * @param: @param updateObjectList
     * @return: void
     */
    void storageAdvRestNumberFromRedis(List<KeyValueModel<Long, Integer>> updateObjectList);

    /**
     * @throws
     * @Title: recordLookRecommendAdv
     * @Description: (扣减推荐视频广告观看库存)
     * @param: @param id
     * @param: @param device
     * @param: @param userId
     * @return: void
     */
    void recordLookRecommendAdv(Long id, String device, Long userId);

    /**
     * @throws
     * @Title: recordClickRecommendAdv
     * @Description: (扣减推荐视频广告点击库存)
     * @param: @param advId
     * @param: @param device
     * @param: @param userId
     * @return: void
     */
    void recordClickRecommendAdv(Long advId, String device, Long userId);

    /**
     * @throws
     * @Title: deductionRecommendAdvLookStock
     * @Description: (扣减推荐视频广告观看库存)
     * @param: @param advId
     * @return: void
     */
    void deductionRecommendAdvLookStock(long advId);

}
